package com.xiaobing.crm.feign.usercenter;


import com.xiaobing.common.core.ServiceNameConstants;
import com.xiaobing.common.res.Result;
import com.xiaobing.crm.entity.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = ServiceNameConstants.USER_SERVICE)
public interface UserCenterFeign {

    @GetMapping("/user/users/{id}")
    Result<UserEntity> findById(@PathVariable("id") Integer id);
}

